@model LanLordz.Models.LeaveTeamModel
@{
    var controller = this.ViewContext.Controller as LanLordzBaseController;
    ViewBag.Title = Model.Tournament.TeamSize > 1 ? "Leave Team" : "Leave Tournament";
}
    <div class="EventsNavigator">@Html.ActionLink(controller.Config.SiteName + " Events", "Index") &gt; @Html.ActionLink(Model.Event.Title, "Details", new { id = Model.Event.EventID }) &gt; @Html.ActionLink(Model.Tournament.Title, "ViewTournament", new { id = Model.Tournament.TournamentID }) &gt; @ViewBag.Title</div>
    <h2>@ViewBag.Title</h2>
    @using (Html.BeginForm())
    {
     <text>
     @Html.AntiForgeryToken()
     @Html.ValidationSummary("There was an error leaving your team:", new { @class = "ErrorText" })
     Are you sure you would like to leave @(Model.Tournament.TeamSize > 1 ? "your team" : "the tournament")?<br /><br />
     <input type="submit" value="Yes, Leave" /> @Html.ActionLink("Cancel", "ViewTournament", new { id = Model.Tournament.TournamentID })<br /><br />
     @if (Model.Team.UsersTeams.Count() > 1 && Model.UserTeam.IsTeamCaptain)
     {
         <text>@Html.CheckBox("Disband") Also disband team.</text>
     }
     </text>
    }
